﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
<!DOCTYPE html>
@Html.Partial("LoadPanelPartial")
<html>
<head>
     @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    
    @Html.DevExpress().GetStyleSheets(
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

    )
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script type="text/javascript">

//        $(function () {
//            $("#toolMenu").smartFloat();

////            ASPxClientComboBox.Cast("FStatus").SetValue($('#hdstatus').val());
//        });

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;

            var clientrdFIsEnrollObj = ASPxClientComboBox.Cast("lb");
            e.customArgs["lb"] = clientrdFIsEnrollObj.GetValue();

        }


        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnDelete":
                    {
                        //删除
                        itemApplyManyDel();
                        break;
                    }
            }
        }

        function itemApplyEdit(itemPurchaseApplyID) {
            window.location.href = rootPath + "/Admin/OfficeItemPurchaseApplyEntry/OfficeItemPurchaseApplyEntryEdit?itemPurchaseApplyID=" + itemPurchaseApplyID;

        }

        function search() {
            gvEditing.Refresh();
         }

    </script>

</head>

<body>
    <table>
        <tr>
    <td style=" width:50; font-size:14">查询类别:</td>
    <td>
     @Html.DevExpress().ComboBox(settings =>
{
    settings.Name = "lb";
    settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
    settings.Properties.ClientSideEvents.ValueChanged = "function(s,e){search()}";
}).BindList(new List<SelectListItem> 
                        { 
                            new SelectListItem { Text = "全部", Value = "1" }, 
                            new SelectListItem { Text = "未审批", Value = "2" },
                            new SelectListItem { Text = "通过", Value = "3" },
                            new SelectListItem { Text = "未通过", Value = "4" }
   }).GetHtml()
    </td>
    </tr>
    </table>


    @Html.Partial("OfficeItemPurchaseApplyEntryListPartial", Model)

    @Html.Hidden("hdstatus", ViewData["status"])
     <script type="text/javascript">
         lp.Hide();
    </script>
</body>
</html>
